<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html" indent="yes" version="4.0"/>

<xsl:template match="/">
  <h3>Artistas m&aacute;s visitados en MusicGazer:</h3>
 	<ol>
		<xsl:for-each select="artistas/artista">
		  <xsl:sort data-type="number" select="visitas" order="descending"/>
				<xsl:if test="position() &lt; 7">
					<li><xsl:value-of select="nombre"/> - <xsl:value-of select="visitas"/> visitas</li>
				</xsl:if>
		</xsl:for-each>
	</ol>

</xsl:template>

</xsl:stylesheet> 
